import json

from .model import conn_db
from bson import json_util
collection = conn_db(db_name='hetai',collection='pa_info')

'''
向mongo表中插入数据
'''
def mongo_insert(data):
    collection.insert_one(data)

'''
从mongo表中查找数据
'''
def mongo_find():
    return  list(collection.find({},{"_id": 0}))

